package com.zui.util.jms;

import org.springframework.mail.SimpleMailMessage;

/**
 * This is a mail util class to send mail asynchronously.
 * using apache-activemq4.1.1 for message broker.
 * 
 * @author zhaoyong
 */
public interface MailTemplateAware {
	
	/**
	 * 
	 * @param mailMessage
	 * @param name username of the current login user
	 * @return 
	 */
	public String getTemplateText(final SimpleMailMessage mailMessage, String name);
}
